package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2018-06-18
 */
@TableName("t_area")
public class Area extends Model<Area> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 地区代码
     */
	private String code;
    /**
     * 省代码
     */
	private String sheng;
    /**
     * 市代码
     */
	private String di;
    /**
     * 县代码
     */
	private String xian;
    /**
     * 地区名
     */
	private String name;
    /**
     * 层级
     */
	private Integer level;
	private Integer zhixiashi;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getSheng() {
		return sheng;
	}

	public void setSheng(String sheng) {
		this.sheng = sheng;
	}

	public String getDi() {
		return di;
	}

	public void setDi(String di) {
		this.di = di;
	}

	public String getXian() {
		return xian;
	}

	public void setXian(String xian) {
		this.xian = xian;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getZhixiashi() {
		return zhixiashi;
	}

	public void setZhixiashi(Integer zhixiashi) {
		this.zhixiashi = zhixiashi;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Area{" +
			"id=" + id +
			", code=" + code +
			", sheng=" + sheng +
			", di=" + di +
			", xian=" + xian +
			", name=" + name +
			", level=" + level +
			"}";
	}
}
